######################################################################
# qmake file for Windows, MacOS and Linux
######################################################################


win32 {
    TEMPLATE = vcapp
    TARGET = qtvomp
    DEPENDPATH += . debug release src
    INCLUDEPATH += .
    QT += network phonon
    MOC_DIR = build
    OBJECT_DIR = build

    # Input
    HEADERS += src/iostream.h \
               src/mediawidgetitem.h \
               src/qtvomp.h \
               src/widgetvideo.h \
               src/widgetplayvideo.h \
               src/widgetoptions.h \
               src/recordingswidgetitem.h \
               src/channellistmodel.h \
               src/channellistdelegate.h \
               src/ringbuffer.h \
               src/vdr.h \
               src/vdrthread.h \
               src/vdrfindserver.h \
               src/vompglobal.h
    SOURCES += src/iostream.cpp \
               src/main.cpp \
               src/mediawidgetitem.cpp \
               src/qtvomp.cpp \
               src/widgetvideo.cpp \
               src/widgetplayvideo.cpp \
               src/widgetoptions.cpp \
               src/recordingswidgetitem.cpp \
               src/channellistmodel.cpp \
               src/channellistdelegate.cpp \
               src/vdr.cpp \
               src/vdrthread.cpp \
               src/vdrfindserver.cpp
    RESOURCES += src/qtvomp.qrc
}

unix {
    SUBDIRS += src
    TEMPLATE = subdirs
    MOC_DIR = build
    OBJECT_DIR = build

    CONFIG += release \
                  warn_on \
                  qt \
                  thread
    QT += network phonon
}

mac {
    TEMPLATE = app
    MOC_DIR = build
    OBJECT_DIR = build

    CONFIG += debug \
                  warn_on \
                  qt \
                  thread \
                  precompile_header
    QT += network phonon

    HEADERS += src/qtvomp.h \
               src/widgetvideo.h \
               src/widgetplayvideo.h \
               src/widgetoptions.h \
               src/vdr.h \
               src/vdrthread.h \
               src/vdrfindserver.h \
               src/mediawidgetitem.h \
               src/vompglobal.h \
               src/recordingswidgetitem.h \
               src/channellistmodel.h \
               src/channellistdelegate.h \
               src/iostream.h \
               src/ringbuffer.h
    SOURCES += src/qtvomp.cpp \
               src/widgetvideo.cpp \
               src/widgetplayvideo.cpp \
               src/widgetoptions.cpp \
               src/main.cpp \
               src/vdr.cpp \
               src/vdrthread.cpp \
               src/vdrfindserver.cpp \
               src/mediawidgetitem.cpp \
               src/recordingswidgetitem.cpp \
               src/channellistmodel.cpp \
               src/channellistdelegate.cpp \
               src/iostream.cpp
    RESOURCES += src/qtvomp.qrc


    INCLUDEPATH += . src /Library/Frameworks/QtNetwork.framework/Headers \
                         /Library/Frameworks/phonon.framework/Headers

    LIBS += -framework phonon \
            -framework QtNetwork

    CONFIG -= release
    ICON = src/images/icon.icns
}
